package com.zhuoli.zblog.service.impl;

import com.zhuoli.zblog.repository.model.User;
import com.zhuoli.zblog.repository.service.UserDaoRepository;
import com.zhuoli.zblog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Author: zhuoli
 * Description:
 * Date: 上午10:22 2018/4/14
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDaoRepository userDaoService;

    /**
     * @Author: zhuoli
     * @Description:
     * @param userName
     * @Description:
     * @Date: 上午10:26 2018/4/14
     */
    @Override
    public User getUser(String userName) {
        /*return userDaoService.queryUserByUserName(userName);*/
        return null;
    }

    @Override
    public void saveUser(User user) {
        userDaoService.insertUser(user);
    }
}
